<template>

    <div class="category">
        <h3>{{title}}</h3>
       <!--<slot>我是默认值数据</slot>-->

        <slot name="center">默认数据</slot>
        <slot name="footer">默认数据</slot>
    </div>
</template>

<script>
    export default {
        name: "Category",
        props:["listData","title"]
    }
</script>

<style scoped>

    .category{
        background: skyblue;
        width: 200px;
        height: 300px;
    }
    h3{
        text-align: center;
        background-color: orange;
    }
</style>